import request from '../utils/request';

export const getUserInfo = () => {
	return request({
		url: '/users/person',
		method: 'get'
	});
};


export const putUserInfo = (data: Object) => {
	return request({
		url: '/users/person',
		method: 'put',
		data
	})
}

export const getUserPendding = (params?: Object) => {
	return request({
		url: '/app/pendding/list',
		method: 'get',
		params
	})
}
export const addUserPendding = (data: Object) => {
	return request({
		url: '/app/pendding/add',
		method: 'post',
		data
	})
}
export const putUserPendding = (data: Object) => {
	return request({
		url: '/app/pendding/update',
		method: 'put',
		data
	})
}
export const deleteUserPendding = (data: Object) => {
	return request({
		url: '/app/pendding/delete',
		method: 'post',
		data
	})

}